﻿package mortal.game.manager.window3d
{
    import baseEngine.core.*;
    import baseEngine.system.*;
    import flash.geom.*;

    public class Obj3dInfo extends Object
    {
        public var obj3d:Pivot3D;
        public var autoDispose:Boolean = true;
        public var modlelocalPos:Point;
        private var _offsetX:Number = 0;
        private var _offsetY:Number = 0;
        private var _targetRect3D:Rect3DObject;
        private var _alpha:Number = 1;

        public function Obj3dInfo(param1:Pivot3D, param2:Rect3DObject)
        {
            this.modlelocalPos = new Point();
            this.obj3d = param1;
            this._targetRect3D = param2;
            return;
        }// end function

        public function get offsetY() : Number
        {
            return this._offsetY;
        }// end function

        public function dispose() : void
        {
            if (!this.obj3d)
            {
                return;
            }
            this._targetRect3D = null;
            var _loc_1:* = this.obj3d;
            this.obj3d = null;
            _loc_1.dispose();
            this._alpha = 1;
            _loc_1.removedFromScene();
            return;
        }// end function

        public function set offsetX(param1:Number) : void
        {
            this._offsetX = param1;
            return;
        }// end function

        public function get offsetX() : Number
        {
            return this._offsetX;
        }// end function

        public function set offsetY(param1:Number) : void
        {
            this._offsetY = param1;
            return;
        }// end function

        public function set alpha(param1:Number) : void
        {
            if (this._alpha == param1)
            {
                return;
            }
            this._alpha = param1;
            var _loc_2:* = this._alpha;
            this.obj3d.alpha = this._alpha;
            return;
        }// end function

        public function get alpha() : Number
        {
            return this._alpha;
        }// end function

    }
}
